<?php
namespace app\tree\validata;
use think\Validate;
/**
 *时光相册验证类 
 */
class TreeValidata extends Validate
{
	  protected $rule =   [
        'page'=>'number',
        'limit'=>'number|max:2',
        'treesid'=>'number',
        'type'=>'number|max:2',
        'Token'=>'require|max:200|chsDash',
        'Openid' =>'max:200|chsDash',
        'userid' =>'max:11|number',
        'treeuserid'=>'require|number|max:11',
    
    ];
    
    protected $message  =   [
        'albumname.require' => '相册名是必须的',
    ];

    protected $scene = [
        'tree_list' => ['page','limit'], // 时光相册
        'treesid' =>['treesid','Token'],
        'get_energys'=>['Token'],
       'pick_energys'=>['Openid','Token'],
       'get_rank' =>['page','limit'],
       'messageFloats'=>['page','limit','type'],
       'waterings'=>['treesid'],
    ];
}

?>